﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class LoseButton : MonoBehaviour, IPointerClickHandler {

	GameStateManager manager;
	void Start () {
		manager = GameObject.FindGameObjectWithTag ("StateManager").GetComponent<GameStateManager>();
	}

	#region IPointerClickHandler implementation
	public void OnPointerClick (PointerEventData eventData)
	{
		manager.Restart ();
	}
	#endregion
}
